<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:a4j="http://richfaces.org/a4j">
  
<h:body>
	<h:form>
		<p:panel header="join packet">
			<h:panelGrid columns="3" id="regGrid">
				<h:outputLabel for="id">id</h:outputLabel>
				<p:inputText id="id" value="#{PersonalizationBean.id}" />
				<p:message for="id" />
			</h:panelGrid>
				<p:commandButton value="join" update="regGrid"
				action="#{PersonalizationBean.register()}" />
		</p:panel>
		
		<p:panel header="Join friend's packet">
			<h:panelGrid columns="3" id="regGrid1">
				<h:outputLabel for="id1">id</h:outputLabel>
				<p:inputText id="id1" value="#{PersonalizationBean.id2}" />
				<p:message for="id1" />
			</h:panelGrid>
				<p:commandButton value="join" update="regGrid1"
				action="#{PersonalizationBean.registerPersonalized()}" />
		</p:panel>
		<h:link outcome="/user/index" value="HomePage" /> <br />
		
	</h:form>
</h:body>
</html>